import service from '@/utils/request'

// @Tags Shangbiao
// @Summary 创建Shangbiao
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Shangbiao true "创建Shangbiao"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /shangbiao/createShangbiao [post]
export const createShangbiao = (data) => {
     return service({
         url: "/shangbiao/createShangbiao",
         method: 'post',
         data
     })
 }


// @Tags Shangbiao
// @Summary 删除Shangbiao
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Shangbiao true "删除Shangbiao"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /shangbiao/deleteShangbiao [delete]
 export const deleteShangbiao = (data) => {
     return service({
         url: "/shangbiao/deleteShangbiao",
         method: 'delete',
         data
     })
 }

// @Tags Shangbiao
// @Summary 删除Shangbiao
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Shangbiao"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /shangbiao/deleteShangbiao [delete]
 export const deleteShangbiaoByIds = (data) => {
     return service({
         url: "/shangbiao/deleteShangbiaoByIds",
         method: 'delete',
         data
     })
 }

// @Tags Shangbiao
// @Summary 更新Shangbiao
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Shangbiao true "更新Shangbiao"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /shangbiao/updateShangbiao [put]
 export const updateShangbiao = (data) => {
     return service({
         url: "/shangbiao/updateShangbiao",
         method: 'put',
         data
     })
 }


// @Tags Shangbiao
// @Summary 用id查询Shangbiao
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Shangbiao true "用id查询Shangbiao"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /shangbiao/findShangbiao [get]
 export const findShangbiao = (params) => {
     return service({
         url: "/shangbiao/findShangbiao",
         method: 'get',
         params
     })
 }


// @Tags Shangbiao
// @Summary 分页获取Shangbiao列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取Shangbiao列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /shangbiao/getShangbiaoList [get]
 export const getShangbiaoList = (params) => {
     return service({
         url: "/shangbiao/getShangbiaoList",
         method: 'get',
         params
     })
 }